package com.zhuliwei.config;

import jakarta.annotation.Resource;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
/**
 * redisTemplate配置类
 *
 * @author 朱力维
 * @time 2022/12/2 11:49
 **/
@Configuration
public class RestConfiguration {
 
    @Resource
    private RestTemplateBuilder builder;
 
    @Bean
    public RestTemplate restTemplate() {
        return builder.build();  
    }
 
}